package com.k8.rpc.registry;

import com.k8.common.annotation.SPI;
import com.k8.common.extension.Adaptive;
import com.k8.rpc.registry.Registry;
import com.k8.rpc.url.URL;

import static com.k8.common.constants.CommonKeyConstants.PROTOCOL_KEY;


@SPI
//配置文件配置的时候一定使用SPI加载的名字，如nacos
//todo
public interface RegistryFactory {
    @Adaptive({PROTOCOL_KEY})
    Registry getRegistry(URL url);
}
